package com.itheima.d3_log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.slf4j.Logger;

public class LogBackTest {
    public static final Logger LOGGER = LoggerFactory.getLogger("LogBackTest");
    public static void main(String[] args) {
        try {
            LOGGER.info("开始执行除法运算");
            chu(10,0);
            LOGGER.info("结束执行除法运算");

        } catch (Exception e) {
            LOGGER.error("除法执行失败");
        }


    }

    public static void chu(int a, int b){
        LOGGER.debug("执行除法运算，参数a={}, 参数b={}" , a, b);
        int c = a / b;
        LOGGER.info("除法运算结果为{}", c);

    }
}
